package com.zmsoft.boxy.sfg;

import javax.annotation.Resource;

import org.cnsoft.framework.support.MyFrameWorkSupport;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.zmsoft.boxy.sfg.cache.SFGGameInfoCacheService;

/**
 * 游戏数据加载
 */
@Service("MySFGConfigService")
public class MySFGConfigService extends MyFrameWorkSupport {
	
	@Resource
	private SFGGameInfoCacheService myGameInfoCacheService;
	
	// 设置启动模式-每分钟启动
	@Scheduled(cron = "0 0/15 * * * ?")
	public void doQuartzService() throws Exception {
		myGameInfoCacheService.loadGameDatas();
	}

}
